package com.qd.p2p.web.action.user;

import org.apache.struts2.convention.annotation.Action;

import com.qdlc.p2p.biz.util.UserLoginUtil;
import com.qdlc.p2p.biz.web.action.BaseAction;
import com.qdlc.p2p.common.constant.Constant;
import com.qdlc.p2p.dal.dto.User;

/**
 * 用户退出
 * @author linya 2016-02-03
 */
public class UserLogoutAction  extends BaseAction<User>{

    /**
     * 用户退出
     */
    @Action("/user/logout")
    public void logout() throws Exception {
    	UserLoginUtil.cleanLoginUser();
    	session.remove(Constant.SESSION_USER);
        frontRedirect("/user/login.html");
    }
    
}
